home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cocktail / cg.lha / cg / test-c / Makefile < prev    next >
Makefile  |  1992-11-24  |  379b  |  27 lines

  1. LIB    = $(HOME)/lib
  2. INCDIR    = $(LIB)/include
  3. CFLAGS    = -I$(INCDIR)
  4. CC    = cc
  5.  
  6. test:    Main
  7.     time Main
  8.  
  9. Main:    Main.o Tree.o
  10.     $(CC) -o Main Main.o Tree.o $(LIB)/libreuse.a
  11.  
  12. Main.o:    Tree.h
  13.  
  14. Tree.h Tree.c: g.cg
  15.     cg -ca g.cg;
  16.  
  17. lint:    Tree.c Main.c
  18.     lint $(CFLAGS) -u Main.c Tree.c
  19.  
  20. clean:
  21.     rm -f Main Tree.* Main.o yyTree.w a aa aaa b bb core
  22.  
  23. .SUFFIXES:    .c .o
  24.  
  25. .c.o:
  26.     $(CC) $(CFLAGS) -c $*.c
  27.